package com.ywqf_api.enums;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public enum UserEnum {

    //注册相关问题
    GET_FAIL(1,"获取信息失败"),
    USER_EMPTY(2,"用户不存在或已被禁用"),
    GET_SUCCESS(1000,"信息获取成功"),
    SEND_SUCCESS(1000,"发送成功！"),

    PHONE_NULL(3,"手机号为空！"),
    USER_NULL(4,"该用户不存在！"),
    PASSWORD_FAIL(5,"密码输入有误！"),
    SEND_FAIL(6,"发送失败！请重试");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    UserEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
